<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>File: relation_transform.rb</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



  <div id="fileHeader">
    <h1>relation_transform.rb</h1>
    <table class="header-table">
    <tr class="top-aligned-row">
      <td><strong>Path:</strong></td>
      <td>relation_transform.rb
      </td>
    </tr>
    <tr class="top-aligned-row">
      <td><strong>Last Update:</strong></td>
      <td>Thu Jun 07 15:43:37 India Standard Time 2007</td>
    </tr>
    </table>
  </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
This is the relationship transform specific file.
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000052">create_relationship_transform_config_file</a>&nbsp;&nbsp;
      <a href="#M000054">m_to_m_transform</a>&nbsp;&nbsp;
      <a href="#M000055">o_to_m_transform</a>&nbsp;&nbsp;
      <a href="#M000053">transform_relationships</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000052" class="method-detail">
        <a name="M000052"></a>

        <div class="method-heading">
          <a href="relation_transform_rb.src/M000052.html" target="Code" class="method-signature"
            onclick="popupCode('relation_transform_rb.src/M000052.html');return false;">
          <span class="method-name">create_relationship_transform_config_file</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
This method creates the relationship config file. The key words indicationg
relationships are many_to_many and one_to_many
</p>
        </div>
      </div>

      <div id="method-M000054" class="method-detail">
        <a name="M000054"></a>

        <div class="method-heading">
          <a href="relation_transform_rb.src/M000054.html" target="Code" class="method-signature"
            onclick="popupCode('relation_transform_rb.src/M000054.html');return false;">
          <span class="method-name">m_to_m_transform</span><span class="method-args">(row_details,new_connection)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
This method is the actual implementation of the many to many relationship
transform. The convention used for the third table is the two table names
separated by an underscrore
</p>
        </div>
      </div>

      <div id="method-M000055" class="method-detail">
        <a name="M000055"></a>

        <div class="method-heading">
          <a href="relation_transform_rb.src/M000055.html" target="Code" class="method-signature"
            onclick="popupCode('relation_transform_rb.src/M000055.html');return false;">
          <span class="method-name">o_to_m_transform</span><span class="method-args">(row,new_connection)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
This is the actual implementation of the one to many relationships.
</p>
        </div>
      </div>

      <div id="method-M000053" class="method-detail">
        <a name="M000053"></a>

        <div class="method-heading">
          <a href="relation_transform_rb.src/M000053.html" target="Code" class="method-signature"
            onclick="popupCode('relation_transform_rb.src/M000053.html');return false;">
          <span class="method-name">transform_relationships</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
This method based on the keyword decided which relationship transform to
execute. Currently many to many and one to many relationships are
supported.
</p>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>